package com.vf.admin.miaodong.service.impl;

import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.dao.AfterBannerDao;
import com.vf.admin.miaodong.entity.AppBanner;
import com.vf.admin.miaodong.service.AfterBannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 轮播图
 */
@Service
public class AfterBannerServiceImpl implements AfterBannerService {
    @Autowired
    AfterBannerDao appBannerDao;

    /**
     * 查询列表
     */
    @Override
    public List<AppBanner> list(Map<String, Object> paraMap, SplitPageBean splitPage) {
        return appBannerDao.list(paraMap,splitPage);
    }

    /**
     * 详情
     */
    @Override
    public AppBanner get(Integer id) {
        return appBannerDao.get(id);
    }

    /**
     * 添加/修改
     */
    @Override
    public void save(AppBanner appBanner) {
        appBannerDao.save(appBanner);
    }

    /**
     * 删除
     */
    @Override
    public void del(Integer id) {
        appBannerDao.del(id);
    }

}
